/**********************************************************************************************/
// dgt_AlgConditions.cpp
//
// Common Lib for Digital Studio
// Block of management of algorithm
// Class, which represent table of conditions of algorithm 
//
// Copyright Diamant Group 2008
/**********************************************************************************************/

#include "dgtKernel.h"
#include "dgt_Log.h"
#include "dgt_AlgVar.h"
#include <wx/arrimpl.cpp>

/**********************************************************************************************/
WX_DEFINE_OBJARRAY( dgt_AlgVarArray );

/**********************************************************************************************/
dgt_AlgVar::dgt_AlgVar(	wxString	inName,
						wxString	inPlugName,
						unsigned	inCode )
{
	START( "DgtKernel", "dgt_AlgVar::dgt_AlgVar" );
	LOG_PARAM( inName );
	LOG_PARAM( inPlugName );
	LOG_PARAM( inCode );

	m_Name = inName;
	m_PlugName = inPlugName;
	m_Code = inCode;

	RETURN_VOID( "dgt_AlgVar::dgt_AlgVar" );
}

/**********************************************************************************************/
wxString dgt_AlgVar::get_Name( void )
{
	START( "DgtKernel", "dgt_AlgVar::get_Name" );

	wxString result;

	result = m_Name;

	RETURN( "dgt_AlgVar::get_Name", result );
	return result;
}

/**********************************************************************************************/
void dgt_AlgVar::set_Name( wxString inName )
{
	START( "DgtKernel", "dgt_AlgVar::set_Name" );
	LOG_PARAM( inName );

	m_Name = inName;

	RETURN_VOID( "dgt_AlgVar::set_Name" );
}

/**********************************************************************************************/
wxString dgt_AlgVar::get_PlugName( void )
{
	START( "DgtKernel", "dgt_AlgVar::get_PlugName" );

	wxString result;

	result = m_PlugName;

	RETURN( "dgt_AlgVar::get_PlugName", result );
	return result;
}

/**********************************************************************************************/
void dgt_AlgVar::set_PlugName( wxString inPlugName )
{
	START( "DgtKernel", "dgt_AlgVar::set_PlugName" );
	LOG_PARAM( inPlugName );

	m_PlugName = inPlugName;

	RETURN_VOID( "dgt_AlgVar::set_PlugName" );
}

/**********************************************************************************************/
unsigned dgt_AlgVar::get_Code( void )
{
	START( "DgtKernel", "dgt_AlgVar::get_Code" );

	unsigned result;

	result = m_Code;

	RETURN( "dgt_AlgVar::get_Code", result );
	return result;
}

/**********************************************************************************************/
void dgt_AlgVar::set_Code( unsigned inCode )
{
	START( "DgtKernel", "dgt_AlgVar::set_Code" );
	LOG_PARAM( inCode );

	m_Code = inCode;

	RETURN_VOID( "dgt_AlgVar::set_Code" );
}